# -*- coding: utf-8 -*-
from rest_framework import serializers
from models import*
import os.path

class ImgInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model=ImgInfo
        fields = '__all__'
    # def validate(self,data):
    #     if data['TakenDate']>data['UploadDate']:
    #         raise serializers.ValidationError('TakenDate must be earlier than UploadDate!')
    #     return data